export default {
	dicts: ['sys_user_sex', 'sp_highest_degree', 'sp_level', 'sp_people_type'],
	data() {
		return {
			loading: false,
			tableData: [],
			queryData: {
				pageNum: 1,
				pageSize: 10
			},
			dataCount: 0
		};
	},
	mounted() {
		this.queryTableListData();
	},
	methods: {
		async getTableListData() {
			let result = await this.listFunction(this.queryData);
			this.loading = false;
			if (result.code === 200) {
				this.dataCount = result.total;
				this.tableData = result.rows || [];
			}
		},

		//查询表格数据
		queryTableListData() {
			this.loading = true;
			this.getTableListData();
		},

		//查看涉密人员详情
		handleLookDetail(id) {
			this.$router.push({
				path: '/peoples/user-detail/' + id
			});
		}
	}
};